Lewis Hamilton frustrated after retiring mid-race