The Hubble Space Telescope UV Legacy Survey of Galactic Globular Clusters - XII. The RGB bumps of multiple stellar populations