Former Philippine president Rodrigo Duterte has admitted that he kept a "death squad" to crack down on crime while mayor of one of the country's largest cities.