Ergodic properties and Weyl M-functions for random linear Hamiltonian systems