China ‘stands ready’ to work with all nations on security as US alliances strain