Group twirling and noise tailoring for multiqubit controlled phase gates