SEBI cautions investors on investing in small and midcaps