Navigating protein landscapes with a machine-learned transferable coarse-grained model