Spin structure and magnetic excitations in a 2D xy ferromagnet: CoCl2-intercalated graphite