Have you checked the handlebars / brake levers and other bits that are exerted to those different forces when you are out of the saddle are appropriately tight / clean?
Have you took the headset to bits, cleaned / greased it and put it back together again?