Sayang, since baby is only 16 days old with a phlegmy cough, please do check with your pediatrician or go to the clinic soon, better to be safe at this tender age, ya?
Regarding the formula, it's good you identified the issue, but do discuss with the doctor which one suits baby better before switching. Wishing your little one feels better soon!