Drivers of recovery and reassembly of coral reef communities