Duchess of Cambridge leaves hospital