3M agrees to pay $6bn settlement in US military earplug lawsuit