States are looking at how grocery stores, hotel chains, and retailers are using personal consumer information—from browsing history to location data—to dictate prices.