Sunday’s referendum backed new gun restrictions to conform with EU rules, projections suggest.