The UK should not "jump in with both feet" to retaliate against Donald Trump's trade tariffs, Sir Keir Starmer has said.