Ginzburg–Landau theory of mesoscopic multi-band Josephson junctions