The effect of a magnetic field on the recombination of a radical pair