Lloyds blamed the decision to shut the branches on customers shifting away from banking in person to using mobile services.