On some identities and inequalities for frames in Hilbert spaces