The leaders of Denmark and Greenland have called for US President Donald Trump to stop threatening to take over Greenland.