A major public health incident has been declared by the city council, with uncollected bin bags attracting rats.