Investors have shunned riskier assets this week, marking a sudden shift in mood that is delivering heavy losses to inexperienced traders