Actor Danny Masterson's rape trial has been declared a mistrial by California court judge