Plot against Chinese president foiled, party official says