Daimler has said it returned to profit in the first quarter, raising its full-year forecast on the back of strong Mercedes car sales.