Cognitive deficits and community functioning in chronic schizophrenia