Slaven Bilic insists he is leaving West Ham with his "head held high" after he was sacked with the club languishing in the bottom three.