In what may have been her last speech as chief of the Federal Reserve, Janet Yellen said Friday that any rollbacks of financial reforms should be modest.