These type of question should and must be attempted on your own.
But here are a few things you could do:
- report this to your friend's parents as they may know what to do
- inform him about his bad habits and his grades
- give him company and do not allow him to spend time his new friends
- engage him in activities such as reading or writing