A woman has been arrested on suspicion of arson after a fire at a Yorkshire pub, police said.