Security company G4S will not be allowed to run HMP Birmingham again for at least six months.