Brans-Dicke models with time-dependent cosmological term