Stroke risk factors and loss of high cognitive function