Long-term use of certain reflux medications is associated with a higher risk of dementia, study suggests