A Green function theory of spin waves in randomly disordered magnetic systems. I. The ferromagnet