The Co-operative Group has returned to a half-year profit despite a soaring wage bill and rising costs of shoplifting across its retail stores.