Cognitive impairment and functional ability in the acute phase of ischemic stroke.