A British coroner has criticized the press for "salacious" coverage of a transgender teacher who later killed herself.