Exercising in areas with high pollution may actually have a bad effect on the brain, new research has found.