A husband and wife have died trying to save their daughter, who got into trouble at a Western Australia beach.