China has criticised a British warship's passage through the Taiwan Strait as a deliberate move to "cause trouble".