Apple has beaten Microsoft’s record for the highest stock market value in history.