The effect of star formation and feedback on the X-ray properties of simulated galaxy clusters