Social Network Structure and the Determinants of Pathogen Genetic Diversity