Australia’s former foreign minister, Julie Bishop, will retire from politics at the next election, she said on Thursday.