Throughout the game there will be various melee weapons either as part of the environment that can be used or as weapons dropped from enemies. simply pick them up and smack them against the waves of enemies to gain progress. Chapter 4 has some great moments for this in the beginning. Note that every melee weapon will break over time as you hit enemies with it, however they can hit multiple enemies with each swing.