Philippines retains pact allowing US war exercises as China tensions mount