Australia's Titmus wins freestyle gold