Risk factors for cognitive decline in type 2 diabetes mellitus patients in Brazil: a prospective observational study