Magnetoresistance of graphite intercalated with cobalt