Duterte cancels Japan trip to deal with militant battle