Monster Beverage Corp has sued San Francisco's attorney general, claiming that his probe into alleged marketing to children is "motivated by publicity rather than science".