Heartburn medication linked to dementia