People with type 2 diabetes are at increased risk of Alzheimer's disease and other cognitive problems. A new study led…