ASX rises as miners gain but banks fall