Former U.K. Prime Minister Boris Johnson will not take part in the contest to replace outgoing leader Liz Truss.