Prince Harry faced ‘sustained campaign of attacks’ after challenging Daily Mail, court hears