Cognitive function in diabetes mellitus