On some combinatorial identities and harmonic sums