President secures $4b investment pledges from German busines