Asymptotic and bifurcation analysis of wave-pinning in a reaction-diffusion model for cell polarization