f(R) cosmology with torsion