Donald Trump has hosted Apple chief executive Tim Cook for a Friday evening dinner at the US President-elect’s Mar-a-Lago resort, sources said.