Population genetic correlates of declining transmission in a human pathogen