Discreteness effects in simulations of hot/warm dark matter