Frequency-dependent hydrodynamic finite size correction in molecular simulations reveals the long-time hydrodynamic tail