Active-to-sterile neutrino dipole portal and the XENON1T excess