Prime Minister Keir Starmer has made a surprise visit to Oxford University.