Valley-resolved Fano resonance in monolayer transition metal dichalcogenide nanoribbons with attached stubs