Accretion disc reverberation mapping of the narrow-line Seyfert 1 galaxy Mrk 1239