Transmission gaps, trapped modes and Fano resonances in Aharonov–Bohm connected mesoscopic loops