Drugs used to treat acid reflux and ulcers don’t appear to boost the risk of dementia, as has been previously suspected, new research suggests.