Britain's biggest retailer Tesco has agreed to pay a 129 million pound ($162 million) fine to settle an investigation by prosecutors over a 2014 profit overstatement, it said on Tuesday.