Storing quantum information in XXZ spin rings with periodically time-controlled interactions