China has accused the United States of "provocation" after warships from the two countries almost collided in the Taiwan Strait.