Sir Keir Starmer has hit back at Donald Trump’s criticism of his China trip, saying ignoring Beijing would be “foolhardy”.