Genetic control of population structure in heterogeneous strains of methicillin resistantStaphylococcus aureus