UK economy on brink of recession as it shrinks in August