BP chief Bernard Looney resigns over past relationships with colleagues