Cypriot authorities “failed” to properly investigate the case of a British woman who had her conviction for lying about being gang raped overturned, a court has found.