Route to localising elastic energy via the topological rainbow effect