Understanding the effects of temperature on the behaviour of clay