Rewe, the German retailer, has agreed to buy Tengelmann's Plus discount chain in the Czech Republic.