Britain's King and Queen will pay state visits to Italy and the Vatican, Buckingham Palace has confirmed.