Evolution of genomic diversity in natural microbial populations