Ford has confirmed it will return to Formula One in 2026 as it prepares to join forces with world champions Red Bull.