The UK and Denmark have agreed to “work closely together” on ensuring the security of the Artic region including Greenland, the Danish prime minister said as the country faces a diplomatic row with the US over the territory.