Effects of metapopulation structure and recombination on bacterial populations