Peace talks between Afghanistan and Pakistan have collapsed, though the ceasefire between the two neighbours remains intact.