Senator Dianne Feinstein has said in a statement on Tuesday that she will leave Congress at the end of 2024.