Study reveals how much you need to exercise to avoid insomnia