A mathematical model for the behaviour of buildings subject to thermal field with stochastic component