Evaluation of cognitive performance in demented patients with subclinical thyroid disease