BP first-quarter profit slightly ahead of forecasts, raises dividend