Flawed NHS records skew ethnic health data, says study