Effect of phase on the frictional dissipation in systems subjected to harmonically varying loads