Researchers have for the first time developed a “risk score” to try to predict which people may develop dementia.