Hubble Space Telescope observations of the host galaxies and environments of calcium-rich supernovae