The chancellor says data showing the UK economy shrank by 0.3% reflects a “challenging” situation.