Brazilian retailer CBD and rival Casas Bahia have agreed new terms regarding their proposed merger, following months of renegotiations, according to local reports.