Cognitive defects in the development of mental illness