Social media influencers who receive money from companies to promote products must clearly label such posts as adverts, Germany's federal court has ruled.