A Model of the Mechanisms Underlying Exploratory Behaviour