The association between diabetes and cognitive changes during aging