Wrexham miss out on top spot as Shrewsbury take derby spoils