Sir Keir Starmer has become the first western prime minister to take a public HIV test in an effort to destigmatise testing for the virus.