A scaling theory of Anderson localisation