Shell has signed an agreement to acquire a 35% stake in two offshore oil blocks in Angola from a subsidiary of Chevron.