Money-market funds are attracting investor interest like never before, but regulators worry that they are riskier than many investors realize.