Harry has had an email sent to his older brother, who is married to Kate Middleton, read out in court as part of a legal wrangle.