G7 nations strike deal to tax big companies and squeeze havens