Home sales fall for 5th month as median prices hit record high