Following a Mediterranean diet has been shown to improve cognitive function in type 2 diabetics in a new study.