Tesco has signed "definitive" deals to merge its Chinese business with local retailer China Resources Enterprise.