The US will not accept China's militarisation of man-made islands in the South China Sea, Defence Secretary James Mattis has warned.