Relationship between dietary pattern and cognitive function in elderly patients with type 2 diabetes mellitus