South Yorkshire Police have apologised to Sir Cliff Richard and agreed to pay him substantial damages after the singer sued following BBC reports naming him as a suspected sex offender, a High Court judge has been told.

Lawyers told Mr Justice Mann, at a hearing in London on Friday, that Sir Cliff and force bosses had settled their dispute.

The singer had taken legal action against the BBC, and South Yorkshire Police, over coverage of a raid at his apartment in Sunningdale, Berkshire, in August 2014.

He had said his right to respect for private life had been infringed and he wanted ''very substantial'' damages.

Sir Cliff and the BBC remain in dispute.

Detail of the terms of the settlement were given to Mr Justice Mann by a barrister heading Sir Cliff's legal team.

Justin Rushbrooke QC did not say how much South Yorkshire Police had agreed to pay.

Mr Justice Mann has heard that in late 2013 a man made an allegation to the Metropolitan Police, saying he had been sexually assaulted by Sir Cliff at Sheffield United's Bramall Lane football stadium when a child in 1985.

Metropolitan Police officers passed the allegation to South Yorkshire Police in July 2014.

Sir Cliff denied the allegation ''as soon as it was brought to his attention'' and in June 2016 prosecutors announced that he would face no charges.

South Yorkshire Police had already apologised ''wholeheartedly for the additional anxiety caused'' by the force's ''initial handling of the media interest'' in its investigation into the singer.

BBC editors have said they will "defend ourselves vigorously''.

A spokeswoman said the BBC had reported Sir Cliff's ''full denial of the allegations at every stage''.