Middle-age spread a 'dementia risk'