Family Dollar to shut 390 stores by year-end