A law firm has filed a class action against pharmaceutical giant Johnson & Johnson for allegedly selling "ineffective" cold and flu medicine to Australians.