Part of Amber Heard’s evidence in Johnny Depp libel trial will be kept private