Common drugs could lower the risk of people getting dementia, according to experts at the University of Cambridge and University of Exeter.