Jacques-Louis David, ‘The Death of Marat’ / Tate Liverpool exhibition examines effect of socialism on art