The sacked UK health minister says he regrets making "badly misjudged" comments on WhatsApp.