Artificial intelligence is a $38 billion revenue opportunity for retailers. Here's how to play the trend