The black boxes holding the flight data and cockpit voice recorders of a South Korean passenger jet that crashed, killing 179 people, stopped recording four minutes before the disaster, officials have said.