As big investors were dumping small- and mid-caps, retail investors stayed put