Donald Trump’s threats to pull the US out of the alliance would be almost impossible to put into action, but they draw attention to a ‘staggering’ imbalance