Australia, leading 2-1, retained the Ashes after the rain-affected fourth Test in Manchester ended in a draw.