Ibuprofen and antibiotics could reduce dementia risk, study suggests