From gauge to higher gauge models of topological phases