UK economy shrinks in August as cost of living crisis bites