Paris and Marseille are held by the Socialists in local elections which saw the nationalist right win in Nice and certain towns.