Man who grabbed flag from Queen Elizabeth II’s coffin is sent for treatment at mental health centre