US watchdog finds major internal flaws hampering Afghanistan war effort