Two rival Afghan Taliban factions have agreed to a ceasefire. They split following news that former leader Mullah Omar had died.