The UK’s economy shrank at the fastest pace since 2008 during the first three months of the year.