One of the most powerful typhoons to hit Vietnam in a decade ripped roofs off buildings, sank boats and caused flooding.