Academic and TV historian Mary Beard has disclosed her innovative approach to dealing with her vitriolic Twitter trolls – writing them a job reference.