Full divorce petition papers lodged by the golfer Rory McIlroy show he and his former wife Erica Stoll signed a prenuptial agreement.