Three-time Olympic gold medallist Max Whitlock is to come out of retirement to target a place at the Los Angeles Olympics in 2028.