A Weiss-type model of ferromagnetism