Dozens of people died in York as a direct consequence of drinking alcohol in 2023, new figures show.