One in five retail investors have switched money from equities to cash in response to stock market volatility, new research shows.