The long‐term variation of the Sun's open magnetic flux