Magnetic properties of CoCl2-intercalated graphite