Frequentist inference in weakly identified dynamic stochastic general equilibrium models