Apple overtakes Nvidia as the world's most valuable company after AI chip stocks fall, as investors shift focus ahead of Apple's earnings report.