The effects of softening on nearshore erosion of a cohesive shoreline