Microsoft is once again the most valuable company in the world after stock market crashes driven by global trade tensions.