A 13-year-old boy is credited with saving his family after they were swept out to sea off the Australian coast.