Controversial pharmaceutical executive Martin Shkreli used a speaking appearance at UMass Boston on Thursday to defend the high cost of some rare disease treatments, including a drug developed by Cambridge-based Biogen. The talk came one day after Shkreli gave a similar address at Harvard University. Both appearances were organized by student groups, not the universities.