Global risks and a hiring slowdown warrant a cautious approach to raising interest rates, Fed Chair Janet Yellen said.