‘No’ vote prevails in knife-edge referendum prompted by Donald Trump’s threats to annex Greenland