As they age, people with diabetes are more likely to develop Alzheimer's disease and other cognitive disorders.