China’s foreign-exchange reserves rose in December amid a weaker dollar, wrapping up a year marked by a ballooning trade surplus.