Gannett, the publisher of USA Today and other newspapers, has warned about 18,000 current and former employees that hackers may have had access to their personal information after breaking into the emails of members of its human resources department.