A shop in Lancaster has been ordered to close after selling illegal vapes for three months.