Air pollution has been linked to increased risks of hospital admission for mental health, as well as physical illness, research found.