Stochastic modelling for contact problems in heat conduction