The new head of the Catholic Church will be formally installed as pope at a mass on May 18, the Vatican says.