The chancellor says the UK's economy has performed well given the weakening global economy and Brexit uncertainty.