David Lammy has insisted he will be “gracious” to Donald Trump despite his previous comments disparaging the incoming US president.