Oil and gas company beats analysts’ forecasts, with profits reaching $5bn in first three months of year