Just stop drinking. If you have okay friends they will understand.
If I know there is going to be alcohol at an event I will bring some non alcoholic beer. Most people don't give a shit about you actually being inebriated, as long as you have something occupying your hands they won't bug you to drink.