I just started cycling in June and had/have the same problem. The following has helped me out:
1 - Do some good neck stretches before riding
2 - Stretch your neck while riding every other mile or so
3 - While riding, try and keep you neck in a natural postion (so that you're looking down more than forward) as much as possible and just use your eyes to look forward