Association of cognitive impairment with magnetic resonance imaging findings and social activities in patients with multiple sclerosis