A woman missing for months has been found alive, chained up in a metal container on an isolated property owned by a convicted sex offender.