Stability of the Einstein static universe in massive gravity