Ergodicity and localisation in mean-field quantum systems