Duterte to be brought to local court to determine if arrest was proper