Richard Hughes departs after investigation into how official forecaster accidentally published budget 40 minutes early