David Cameron has become the first former prime minister to come out in support of the assisted dying bill.