On the semigroup rank of a group