As Trump’s trade war led stocks to post their worst first quarter since 2022, diversification proved its worth.