Mouse menu: Contextual->Point in surface
With this option selected, when creating a new point or line, etc., you can only select points that lie on existing surfaces.
To switch it off, simply select 'No Point in surface'.