Burglar hides in mall, ransacks stores