A first-time mum was asked to leave a Queensland hospital just hours after giving birth 12 days early, due to a chronic bed shortage.