Usefulness of data from magnetic resonance imaging to improve prediction of dementia: population based cohort study