Foreign Secretary David Lammy has refused to condemn Donald Trump's threat to seize Greenland and the Panama Canal.