State to end use of hotels as shelters