Security checks are taking place at St. Peter's Square in Rome during the funeral of Pope Franciscus.