Eating spicy foods could lead to dementia, study finds