Queen lies in state after leaving Buckingham Palace for last time