On groups with cubic polynomial conditions