New research has revealed that drinking tea and coffee is associated with a lower risk of dementia and stroke.