Market turmoil from tariff wars offers a masterclass in investor psychology