Disorder drives cooperative folding in a multidomain protein