Drinking caffeinated coffee or tea each day could reduce your risk of dementia, according to a recent study.