A father-of-six who had his testicles removed due to a flesh-eating bacteria infection has lost his High Court fight.