Axion dark matter, solitons and the cusp–core problem