Constraining f(R) gravity with planck data on galaxy cluster profiles