Voters in France have rejected the traditional parties of the right and left in the first stage of the race for the presidency.