A former leader of the Ulster Unionist Party has called on the DUP to withdraw its support for the legacy proposals.