How diabetes affect the brain and its functions

Does diabetes affect the brain and its functions? Describe, explain, and discuss the evidence