Topological constraints on self-organisation in locally interacting systems