Tops Markets announced that it will sell 18 Ohio stores to its competitor Giant Eagle, in a move that signalled the retailer's retreat from the regional market.