Equivalence of scalar-tensor theories and scale-dependent gravity