Tesco is set to lay off up to 25% of its in-house legal team as part of a programme of cuts that will see the supermarket giant cut around a quarter of its staff across its head offices.