Amazon.com Inc.’s annual Prime Day shows that e-commerce isn’t the driver it once was for the stock, as investor focus shifts to the company’s faster-growing and profitable cloud-computing unit. In the past four years, the stock has fallen in the week of the two-day sale in which the retail giant discounts swathes of items.