US economy is slowing, but recession not inevitable, Yellen says