Stock market volatility tests the mettle of amateur investors