Shell signals end to record profits run as refining margins drop