The long-serving MP apologises for past comments and says she has been issued with a “formal warning”.