‘Declining’ pub must install customer ID scanner to keep licence