Study: Resveratrol, a compound found in grapes, can protect against cognitive decline