Multiple imputation for estimating the risk of developing dementia and its impact on survival