A new model of care and support forĀ homelessĀ people in Inverclyde has been agreed - paving the way for the closure of a heavily criticised homeless unit in Greenock.