NMR study of defect-induced magnetism in methylammonium lead iodide perovskite