Measurement of the B→X_{s}γ branching fraction and photon energy spectrum using the recoil method