Molecular mechanism of genetic recombination in bacterial transformation