The Duchess of Cambridge has gone into self-isolation, a Kensington Palace spokesperson has confirmed.