Cognitive reserve in mental disorders