Bank agrees $480m penalty over 'dogs***' loans