Constraints on scalar-tensor models of dark energy from observational and local gravity tests