As retailers overhaul the checkout, they find fresh troves of data