Breastfeeding children in their first four months helps protect them against air pollution from traffic and factories, a new study has found.