Former Philippine President Rodrigo Duterte has pleaded not guilty to three counts of murder or attempted murder.