Ivory Coast’s President Alassane Ouattara won an election that has been marred by protests against bans imposed on his long-time rivals.