Hopes that the UK could emerge from recession this year were dealt a major blow by data showing that the manufacturing sector shrank at its fastest rate in more than three years in July.