Performance of HPGe detectors in high magnetic field