Sir Keir Starmer has congratulated Donald Trump after he was elected as the 47th US president and said the pair would seek to consolidate and strengthen US-UK relations.