Rescuers have freed the last four of 12 Thai boys and their soccer coach from deep inside a flooded cave, where they were trapped for more than two weeks.