Samsung Electronics says faulty batteries caused its flagship Galaxy Note 7 phones to catch fire and announces steps to avoid repeat incidents.