Cognitive and affective disorders in hyper- and hypothyreotic elderly patients