Sabrina Carpenter obtains restraining order against man attempting to break into her home several times