Apple surges to all-time high near $5 trillion on AI strategy