Apple shares fell sharply after the tech giant raised prices on iPads and MacBooks, saying the AI boom is driving up the cost of memory.