CSKA Sofia have claimed their first Bulgarian Cup title in five years, beating city rivals Slavia 1-0.