The UK's economy unexpectedly stagnated for a second consecutive month in July, as construction and manufacturing sectors declined, according to official data on Wednesday.