Hidden photon dark matter in the light of XENON1T and stellar cooling