An emotional Sir Cliff Richard has won a High Court privacy battle with the BBC over its coverage of a police search of his home.