Inequalities that sharpen the triangle inequality for sums of $N$ functions in $L^p$