Denmark warns that a US attack on a Nato ally could end the alliance, after Trump again raised the idea of taking over Greenland.