Network Rail chief executive Mark Carne has made a "full and unreserved apology" to families bereaved by level crossing accidents following a scathing attack on the company by MPs.