The Danish military says it is staying close to a Chinese ship in the country's waters amid an investigation into damage caused to underwater cables in the Baltic Sea.