Samsung has permanently ended production and sales of its Galaxy Note 7 smartphones after reports the device was catching fire.