Scientists have created a drone with flapping wings that can fold in and rebound following a mid-air collision