Border clashes have erupted between Pakistan and Afghanistan's Taliban forces, with each side accusing the other of breaking a ceasefire.