Microsoft has overtaken Apple as the world’s most valuable company after losing the top spot last June.