Almost half of warm-water reef-building coral species are at risk of extinction, conservationists have warned after a global assessment announced at the UN climate conference.