Idempotent solutions of the Yang–Baxter equation and twisted group division