As tech shares sold off, investors turned to Apple, which has outperformed the Nasdaq-100 by a wide margin over the past month.