Study looks at how mental health care affects outcomes for foster children