ICC rules Philippines ex-President Duterte to remain detained