Significance of flavonoids in plant resistance: a review