Plans to turn a former hospital in Eastbourne into asylum accommodation have been scrapped, the town’s MP has said.