Sir Keir Starmer has taken an HIV test in an effort to help destigmatise checking for the sexually transmitted virus.