Malala Yousafzai allowed to stay with family