A marine heatwave has caused "catastrophic" damage to the Great Barrier Reef, inflicting health impacts to coral not previously seen by scientists.