Councils have warned library services could soon be limited due to funding failing to kept pace with demand, as the cost-of-living crisis drives more people to use public resources.