Host contact dynamics shapes richness and dominance of pathogen strains