Three-state Landau-Zener model in the presence of dissipation