Amazon, Walmart, and Costco could be "best positioned to ride a macro storm," analysts at Bernstein said Tuesday.