Turning the UK economy around will “take time”, Sir Keir Starmer said after the latest figures showed weaker-than-expected growth.