Health minister Matt Hancock pulled out of the contest to be the next British prime minister on Friday, leaving six candidates remaining in the fight to replace Theresa May.