Coup leader Mohamed Ould Abdel Aziz elected in polls boycotted by major opposition figures.