Magnetic phases in transition metal chloride intercalation compounds of graphite