Magnetolocalization in disordered quantum wires