Teeth can be used to predict mental health problems, study finds