The US has accused Beijing of "provocative" actions after Taiwan said China rehearsed an attack.