Study reveals potential cognitive benefits of antidiabetic drugs