Princess Kate made the announcement on social media after visiting the London hospital where she received treatment.