The UK's gross domestic product (GDP) grew by 0.4% in May, surpassing expectations, driven by increased housing construction and higher services output, according to official data released on Thursday.