Diffuse gamma-ray emission from self-confined cosmic rays around Galactic sources