Ancient treason laws could be rewritten in wake of Shamima Begum case, Sajid Javid suggests