A French court has found six people guilty of invading the privacy of Britain's Duchess of Cambridge after topless photos of her were published in 2012.