The UK economy shrank in May even after the worst of Donald Trump's tariffs were paused, official figures showed.