Horizontal Gene Transfer and The Evolution of Bacterial Cooperation