Constraint on reheating after f ( R ) inflation from gravitational waves