China and the Philippines have held talks in Manila after escalating tensions in the South China Sea raised the risk of a wider military conflict in the region.