The guided missile destroyer USS John S. McCain, damaged in a collision with an oil tanker in August, is to be repaired by the Navy in Japan.