Lyapunov exponents and phase structure of Lifshitz and hyperscaling violating black holes