The UK economy contracted by 0.2% between April and June, its worst performance since 2012.