The main candidates for next year's French presidential election took the stage together for the first time in the campaign.