Optimal control of heteroscedastic macroeconomic models