Renormalization group flow, competing phases, and the structure of superconducting gap in multiband models of iron-based superconductors