Squeezing as a resource to counteract phase diffusion in optical phase estimation