Newcastle have completed the signing of central defender Mapou Yanga-Mbiwa from Montpellier on a five-and-a-half-year contract.