Stability of spherically symmetric spacetimes in metric f(R) gravity