Donald Trump and his NATO allies confirmed their "ironclad commitment" to collective defence in a communique released at the end of a brief summit in The Hague.