The former One Direction singer announced the news on Friday, after he revealed last month he was recovering from an undisclosed medical condition.