Association between social support and quality of life in patients with affective disorders