Nuclear spectroscopy of neutron-deficient hafnium and rare earth activities