Facial recognition use by South Wales Police ruled unlawful