Spain and UK reach draft deal on post-Brexit status of Gibraltar