Decidability of the theory of a monad