Rising food prices could spark worldwide unrest and threaten political stability, the United Nations’s top humanitarian official warned on Tuesday after two days of rioting in Egypt over the doubling of prices of basic foods in a year and protests in other parts of the world.