Magnetic phases of erbium orthochromite