Late-time cosmological evolution in f (R ) theories with ordinary and collisional matter