Study suggests positive impact of religion on mental health