Foundation Models for Music: A Survey