US general: Afghan failure rooted in Taliban deal