A one-dimensional quasi-static contact problem in linear thermoelasticity