Better Wi-Fi connectivity, alongside hot drinks and comfier seating, could be the key to saving Britain’s libraries