A total of 27 hostages, including 10 Chinese nationals and the Cameroonian deputy premier’s wife, were released by suspected Boko Haram militants after being held for months, Cameroon’s government said.