The advance of huge wildfires that have destroyed properties on Spain's Costa del Sol has been mostly halted, though pockets remain, officials say.