Optimal time to exercise differs between men and women, research reveals