Periodic orbits and topological restriction homology