Demand for AI stocks powers tech giant’s shares as it takes top spot by market capitalisation