France’s highest court has upheld an appeal court decision which found former president Nicolas Sarkozy guilty of corruption and influence peddling.