Cognitive impairment after stroke: frequency, patterns, and relationship to functional abilities.