Cognitive impairment is most likely to affect people with multiple types of brain pathology, irrespective of which particular pathologies they have, a study shows.