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