Navigating Distribution Shifts in Medical Image Analysis: A Survey