US President Donald Trump said the German chancellor has got "immigration and energy problems, and a problem with Ukraine."