Spin effects in processes with the participation of high-energy particles in a magnetic field