Taiwanese contract manufacturing giant Foxconn is set to take on Tesla as it enters the market for electric vehicles.