Investigation on the relationship between diabetes mellitus type 2 and cognitive impairment.