A surge in Taliban attacks, coupled with the Afghan government’s rejection of a prisoner exchange, threatens to imperil the fragile US-Taliban peace agreement that aims to end America’s longest war