Make sure your bike has a proper fit. A good local bike shop can do a "fit kit" to check it and fix any problems.
I had this problem for a long time until I got a proper bike fit, which invovled replacing the seat, and adjusting the seat and handlebar position.