US says Afghanistan withdrawal to be done by end of August