For centuries artists have tried to show the truth about war’s horrors – but even great work has had dubious success