An NHS boss has warned plans to disband a team of social workers based at Edinburgh’s Sick Kids hospital could lead to delayed discharges.