The EU is to invest €200m (£171m) in Greenland to improve relations with the Arctic island amid tensions caused by Donald Trump's demands that the territory be handed over to the US.