Joe Manganiello spent months ‘heavily medicated’ amid health battle