May was the strongest month of the year for buying by retail investors, as individuals piled into semiconductor stocks.