Isospin-symmetry breaking in masses of $N\simeq Z$ nuclei