Emergence of alternative stable states in gene exchange communities