A teenager is being treated in hospital after a fire broke out at an Edinburgh home.