US army general says foreign military bases in Afghanistan will be gradually handed over to Afghan forces.