Constraining Extended Theories of Gravity using Solar System Tests