The San Francisco Federal Reserve president warned that waiting too long to hike interest rates poses risks.