Parasite adaptation to locally common host genotypes