Pope Francis is alert after suffering two episodes of "acute respiratory failure" on Monday afternoon, the Vatican has said.