Back-action evasion and squeezing of a mechanical resonator using a cavity detector