Retailers will be forced to obtain a licence to sell vapes and tobacco and could face fines of up to £2,500 for breaching stricter rules.