While Janet Yellen is optimistic about the U.S. economy, she outlined some risks she's watching.