Psychiatric illness and resilience to adversity