The nation almost immediately fell into civil war that involved various factions fighting one another; these factions were often distinguished by clan loyalties. A ceasefire was reached between Rider and opposition parties in what year?