Distorsions of a planar cholesteric structure induced by a magnetic field