A lack of funding is a barrier to the provision of residential rehab in more than three quarters of areas, new figures show.