British prime minister Keir Starmer’s director of communications is set to quit Downing Street after nine months in the job.