Diagnostic errors are the most important causes of avoidable harm to patients in hospitals, warns a senior doctor in the UK.