Barcelona residents told to stay home after cases rise