After Donald Trump’s victory in the US election, attention has turned to comments made by foreign secretary David Lammy six years ago