Spin-deviation theory of ferromagnetism I general theory