Maintaining a daily rhythm is important for mental health, study suggests