Charlie Gard, the terminally ill baby at the centre of a heart-rending legal debate over treatment, has died.