David Lammy’s previous comments about Donald Trump may be put to one side by the US president-elect because of his strong political mandate, a former spy chief has said.