Asymptotic analysis of hierarchical martensitic microstructure