The senior American commander in Iraq said Wednesday that violence in Baghdad had reached its highest levels in recent weeks , despite the assignment of thousands more American and Iraqi troops to the capital in August .