Pope Leo has presented the first major teaching document of his papacy, warning that artificial intelligence needs to be "disarmed".