The famous investor also gave a warning to the flood of new people investing in the stock market