Gordon Brown has said he is against legalising assisted dying, based on his experience of his own daughter's death.