Molecular mechanisms of genetic recombination in bacteriophage