US President Donald Trump said he would sue the BBC for up to $5 billion, after the British broadcaster apologised.