Afghanistan on knife-edge as candidates squabble