An integrated metagenomics pipeline for strain profiling reveals novel patterns of transmission and global biogeography of bacteria