Janet Yellen said she thinks "we need to look closely at how to encourage" legal crypto use cases, but illicit use should be curtailed.