Donald Trump has told Sir Keir Starmer he should use the military to stop migrants crossing the Channel.