Greg James recalled getting told off by Kate Middleton and Prince William for his joke about Princess Charlotte