UK economy contracts in Q3