A new study of 10,000 people found a link between a common condition and the development of dementia within the next few years