Credit Suisse to pay $511mn over helping Americans hide more than $4bn