Theresa May delivered her final speech as prime minister on Wednesday, before leaving Downing Street for Buckingham Palace to submit her resignation to the Queen.