Type 2 diabetes and cognitive function in community-dwelling elderly women.