Investment bill ‘will deter capital’