A French magazine has stoked controversy by publishing pictures of Catherine, the Duchess of Cambridge, topless while on vacation with Prince William, prompting the threat of legal action from palace officials over what they blasted as a “grotesque” invasion of privacy.