Donald Trump has been invited by King Charles for a "historic" state visit to the UK, Sir Keir Starmer has said.