A good routine will help you stay focussed. It is not gonna fix everything but it can give you at least some clarity to try to fix things. Form a routine, a simple routine that you can keep up to do your work. The first thing to do should be to schedule your day.