SA’s factory and mining output slumps