A Cambodian appeals court has upheld a 27-year sentence for former opposition leader Kem Sokha for his treason conviction.