Valid inference after data snooping