Seaweed allelopathy degrades the resilience and function of coral reefs