Myanmar’s military government and a major ethnic rebel group in the country’s northeast have signed a formal ceasefire agreement, mediator China said Monday.