Ultracold atoms in coupled ring potentials and flat-band lattices