Identities for traces of singular moduli