The Federal Trade Commission is investigating whether companies are using artificial intelligence to glean personal shopping habits and then use that information to set prices.