Romance writer's bid to stop authors from using word 'cocky' fails in court