Rwandans have voted for amendment to the constitution that allows the president to contest a third term.