The two companies had agreed to build up to 20 automated warehouses across the United States powered by Ocado’s technology.