HSBC is moving its UK headquarters from Canary Wharf back into the City of London as it adjusts to the impact of hybrid work.