A New York judge has found actor Jonathan Majors guilty of assaulting his ex-girlfriend.