Dissipation in adiabatic quantum computers: Lessons from an exactly solvable model