Relationship between Functional Diversity and Genetic Diversity in Complex Microbial Communities