A William Hill advert that appeared on Tinder broke advertising rules, a watchdog rules.