A developer has confirmed the purchase of an historic hotel in Cornwall after its sudden closure shocked the community.