Stability of the Ricci flow at Ricci-flat metrics