David Lammy insisted the US would remain committed to Nato despite Donald Trump’s comments about the alliance.