The number of people setting up a legal failsafe in case they fall ill is soaring, but nearly 51,000 applications were rejected last year.