South Wales Police is investigating the deaths which officers have described as unexplained.