Hierarchical pattern formation in elastic materials