Neural basis of memory impairments and relation to functional disability in fully or partially remitted patients with affective disorders