DIGIT survey of far-infrared lines from protoplanetary discs: II. CO