Former French President Nicolas Sarkozy has been found guilty of criminal conspiracy, but has been cleared of all other charges, including corruption.