A young County Durham man who violently attacked his mother and girlfriend when he was unable to get his hands on cash to buy more drugs has been jailed.