Cognitive impairment in a population‐based study of patients with multiple sclerosis: differences between late relapsing−remitting, secondary progressive and primary progressive multiple sclerosis