Apple and Amazon drive rally on Wall Street