Hotels and holiday accommodation ordered to close