Nearly a third of people leaving prison are being employed within six months of leaving custody, government statistics show.