Redshift-space distortions in f(R) gravity