Persons cohabiting and acknowledging each other as husband and wife, and generally reputed to be such, for the period of 3 years, and until the decease of one of them, shall thereafter be deemed to have been legally married.