Compete and Compose: Learning Independent Mechanisms for Modular World Models