Warring factions in Sudan have agreed to a seven-day ceasefire following talks in the Saudi Arabian city of Jeddah, according to a statement from Washington and Riyadh, as fighting that has killed hundreds and displaced more than a million entered its sixth week.