Post-Newtonian constraints on f(R) cosmologies in metric formalism