Angular analysis and differential branching fraction of the decay $B^0_s\toφμ^+μ^-$