The Scottish Greens have said the closure of libraries ‘must be stopped’ in order to prevent communities in Scotland from being ‘destroyed’.