Military is expected to maintain control as new government is formed that will face faltering economy and growing frustration over inequality