I believe in titrating. When DH and I realised we drank too much coffee, we bought fresh decaff and every time we make a pot of coffee now, it is half decaff, half fresh, so way less stimulant effect and no jitters.
You could also buy herbal or fruit teas or rooiboos tea. When you make a coffee, get another mug out and put a bag of fruit tea in it ready for next time you boil the kettle.
If you are worried you are spending too much on coffees while out and about, make a cafetiere full of half fresh, half fresh decaff, and pour some into a flask or travel cup so you have free coffee on the go during the day.
When you pour a wine, pour it in a small 125 ml glass then put the stopper in the bottle and put the bottle away. Transfer the poured wine into the biggest glass you have and top it up with sparkling water and ice. At the same time, pour yourself a soft drink with ice. When the glass of wine is finished, there is another drink waiting for you, already chilled, to discourage you from drinking a second glass of wine.