Lifshitz and hyperscaling violated Yang-Mills-dilaton black holes