The effect of assembly bias on redshift-space distortions