Mauritania's government-backed candidate Mohamed Ould Ghazouani won the presidential election on Sunday, cementing the power of a ruling party that has positioned itself as an ally of the West against Islamist militants.