At audience June 24, Pope Francis talked about David, a man of prayer despite his contradictions