An F-35 fighter jet became "uncontrollable" and fell from the air because ice made the aircraft's automated systems think it was on the ground.