Theory of sound propagation in a duct with a branched tube using modal decomposition