Long-term optical spectral monitoring of a changing-look active galactic nucleus NGC 3516 – I. Continuum and broad-line flux variability