Ferrofluid aggregates phase transitions in the planar magnetic field