Thousands of people have marched in Greenland and Denmark to protest the US president's threats to take over the Arctic island.