Nicaraguan President Daniel Ortega canceled an unpopular package of measures to overhaul the country’s social security system, seeking to contain rising unrest after five days of violent street protests that left as many as 26 people dead in this poor Central American nation.